package com.secsbrain.cmdb.biz.impl;

import com.secsbrain.cmdb.biz.IRackService;
import com.secsbrain.cmdb.dal.mapper.RackMapper;
import com.secsbrain.cmdb.dal.model.Rack;
import org.springframework.stereotype.Service;

import com.baomidou.framework.service.impl.SuperServiceImpl;
import com.baomidou.mybatisplus.plugins.Page;

/**
 *
 * Rack 表数据服务层接口实现类
 *
 */
@Service
public class RackServiceImpl extends SuperServiceImpl<RackMapper, Rack> implements IRackService {

	/* (non-Javadoc)
	 * @see IRackService#queryPageList(com.baomidou.mybatisplus.plugins.Page)
	 */
	@Override
	public Page<Rack> queryPageList(Integer pageNo, Integer limit,Rack rack) {
		Page<Rack> page=new Page<Rack>(pageNo, limit);
		page.setRecords(this.baseMapper.selectRackPage(page, rack));
		return page;
	}

}